<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: fatfs.hal/mmc.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_2441aed259fe884ac729d0a0c31d0193.html">fatfs.hal</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">mmc.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="mmc_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ab7771efbbd1a015b449d838d7f09959a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mmc_8h.html#ab7771efbbd1a015b449d838d7f09959a">wait_ready</a> (<a class="el" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> wt)</td></tr>
<tr class="memdesc:ab7771efbbd1a015b449d838d7f09959a"><td class="mdescLeft">&#160;</td><td class="mdescRight">wait for card ready  <a href="#ab7771efbbd1a015b449d838d7f09959a">More...</a><br /></td></tr>
<tr class="separator:ab7771efbbd1a015b449d838d7f09959a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4049fbbcf364fc59886118c79895507"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#adba6790898ce4029c20a34b898ce73c1">DSTATUS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mmc_8h.html#af4049fbbcf364fc59886118c79895507">mmc_disk_initialize</a> (void)</td></tr>
<tr class="memdesc:af4049fbbcf364fc59886118c79895507"><td class="mdescLeft">&#160;</td><td class="mdescRight">Public Functions.  <a href="#af4049fbbcf364fc59886118c79895507">More...</a><br /></td></tr>
<tr class="separator:af4049fbbcf364fc59886118c79895507"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac14ea06e6b2ce5ad9808db3c205db5e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#adba6790898ce4029c20a34b898ce73c1">DSTATUS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mmc_8h.html#ac14ea06e6b2ce5ad9808db3c205db5e6">mmc_disk_status</a> (void)</td></tr>
<tr class="memdesc:ac14ea06e6b2ce5ad9808db3c205db5e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Disk Status.  <a href="#ac14ea06e6b2ce5ad9808db3c205db5e6">More...</a><br /></td></tr>
<tr class="separator:ac14ea06e6b2ce5ad9808db3c205db5e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41eabb26301eb16450258417ed137d67"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mmc_8h.html#a41eabb26301eb16450258417ed137d67">mmc_disk_read</a> (<a class="el" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> *buff, <a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a> sector, <a class="el" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> count)</td></tr>
<tr class="memdesc:a41eabb26301eb16450258417ed137d67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read Sector(s)  <a href="#a41eabb26301eb16450258417ed137d67">More...</a><br /></td></tr>
<tr class="separator:a41eabb26301eb16450258417ed137d67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab065915810044044697ca00bb6bc45c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mmc_8h.html#ab065915810044044697ca00bb6bc45c5">mmc_disk_write</a> (const <a class="el" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> *buff, <a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a> sector, <a class="el" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> count)</td></tr>
<tr class="separator:ab065915810044044697ca00bb6bc45c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbcb6fef21740379e9fdd989b16ab04a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mmc_8h.html#acbcb6fef21740379e9fdd989b16ab04a">mmc_disk_ioctl</a> (<a class="el" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> cmd, void *buff)</td></tr>
<tr class="separator:acbcb6fef21740379e9fdd989b16ab04a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34555655fe13a47c95b35a2c13b85847"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mmc_8h.html#a34555655fe13a47c95b35a2c13b85847">mmc_disk_timerproc</a> (void)</td></tr>
<tr class="memdesc:a34555655fe13a47c95b35a2c13b85847"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write Sector(s)  <a href="#a34555655fe13a47c95b35a2c13b85847">More...</a><br /></td></tr>
<tr class="separator:a34555655fe13a47c95b35a2c13b85847"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="af4049fbbcf364fc59886118c79895507"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#adba6790898ce4029c20a34b898ce73c1">DSTATUS</a> mmc_disk_initialize </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Public Functions. </p>
<p>Initialize Disk Drive </p><dl class="section return"><dt>Returns</dt><dd>Stat </dd></dl>

<p>Definition at line <a class="el" href="mmc_8c_source.html#l00340">340</a> of file <a class="el" href="mmc_8c_source.html">mmc.c</a>.</p>

<p>Referenced by <a class="el" href="diskio_8c_source.html#l00054">disk_initialize()</a>.</p>

</div>
</div>
<a class="anchor" id="acbcb6fef21740379e9fdd989b16ab04a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a> mmc_disk_ioctl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a>&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>buff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Referenced by <a class="el" href="diskio_8c_source.html#l00131">disk_ioctl()</a>, and <a class="el" href="mmc_8c_source.html#l00433">mmc_disk_read()</a>.</p>

</div>
</div>
<a class="anchor" id="a41eabb26301eb16450258417ed137d67"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a> mmc_disk_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> *&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a>&#160;</td>
          <td class="paramname"><em>sector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a>&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read Sector(s) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">buff</td><td>read buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sector</td><td>start sector number </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>sector count </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 ok </dd>
<dd>
non zero error </dd></dl>

<p>Definition at line <a class="el" href="mmc_8c_source.html#l00433">433</a> of file <a class="el" href="mmc_8c_source.html">mmc.c</a>.</p>

<p>Referenced by <a class="el" href="diskio_8c_source.html#l00077">disk_read()</a>.</p>

</div>
</div>
<a class="anchor" id="ac14ea06e6b2ce5ad9808db3c205db5e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#adba6790898ce4029c20a34b898ce73c1">DSTATUS</a> mmc_disk_status </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Disk Status. </p>
<dl class="section return"><dt>Returns</dt><dd>Stat </dd>
<dd>
STA_NOINIT if no drive </dd></dl>

<p>Definition at line <a class="el" href="mmc_8c_source.html#l00420">420</a> of file <a class="el" href="mmc_8c_source.html">mmc.c</a>.</p>

<p>Referenced by <a class="el" href="diskio_8c_source.html#l00031">disk_status()</a>.</p>

</div>
</div>
<a class="anchor" id="a34555655fe13a47c95b35a2c13b85847"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mmc_disk_timerproc </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write Sector(s) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">buff</td><td>write buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sector</td><td>start sector number </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>sector count </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 ok </dd>
<dd>
non zero error Miscellaneous Functions </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">cmd</td><td>Control code </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">[in|out]</td><td>buff: Send/Receive buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>result mmc timer processes </dd></dl>

<p>Definition at line <a class="el" href="mmc_8c_source.html#l00708">708</a> of file <a class="el" href="mmc_8c_source.html">mmc.c</a>.</p>

<p>Referenced by <a class="el" href="diskio_8c_source.html#l00157">disk_timerproc()</a>, and <a class="el" href="mmc__hal_8c_source.html#l00059">mmc_task()</a>.</p>

</div>
</div>
<a class="anchor" id="ab065915810044044697ca00bb6bc45c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a> mmc_disk_write </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> *&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a>&#160;</td>
          <td class="paramname"><em>sector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a>&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Referenced by <a class="el" href="diskio_8c_source.html#l00104">disk_write()</a>, and <a class="el" href="mmc_8c_source.html#l00433">mmc_disk_read()</a>.</p>

</div>
</div>
<a class="anchor" id="ab7771efbbd1a015b449d838d7f09959a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int wait_ready </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a>&#160;</td>
          <td class="paramname"><em>wt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>wait for card ready </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">wt</td><td>ms to wait </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 Ready </dd>
<dd>
0 Timeout </dd></dl>

<p>Definition at line <a class="el" href="mmc_8c_source.html#l00169">169</a> of file <a class="el" href="mmc_8c_source.html">mmc.c</a>.</p>

<p>Referenced by <a class="el" href="mmc_8c_source.html#l00433">mmc_disk_read()</a>, <a class="el" href="mmc_8c_source.html#l00224">rcvr_datablock()</a>, and <a class="el" href="mmc_8c_source.html#l00202">select()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
